<template>
  <div>
    <h4>子组件</h4>
    <p>
      {{ count }}
    </p>
    <input
      type="text"
      :value="count"
      @input="$emit('update:count', $event.target.value)"
    />
  </div>
</template>

<script>
export default {
  name: "Child",
  props: ["count"],
  mounted() {
  // 获取到一个父节点的vc对象
    console.log(this.$parent);
  },
};
</script>

<style>
</style>